package com.pro.bean;

/***
 * 该类为分页类的实体类
 */
public class Page {
    /***
     * 当前页
     */
    private int page;
    /***
     * 页面展示数据个数
     */
    private int limit;
    private String goodsSn;
    private String name;
    /***
     * 排序列
     */
    private String sort;
    /***
     * 排序方式
     * desc 降序
     * asc 升序
     */
    private String order;

    /***
     * 分页查询下标
     */
    private int pageIndex;

    public Page() {
    }

    public Page(int page, int limit, String goodsSn, String name, String sort, String order) {
        this.page = page;
        this.limit = limit;
        this.goodsSn = goodsSn;
        this.name = name;
        this.sort = sort;
        this.order = order;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public String getGoodsSn() {
        return goodsSn;
    }

    public void setGoodsSn(String goodsSn) {
        this.goodsSn = goodsSn;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public int getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }
}
